
package com.gitee.jmash.oidc.oauth2.enums;

/**
 * OAuth2.0 授权类型.
 *
 * @author CGD
 *
 */
public enum GrantType {

  // NONE("none"),
  authorization_code("authorization_code"), 
  implicit("implicit"),
  password("password"),
  refresh_token("refresh_token"), 
  client_credentials("client_credentials"),
  jwt_bearer("urn:ietf:params:oauth:grant-type:jwt-bearer");

  private String grantType;

  GrantType(String grantType) {
    this.grantType = grantType;
  }

  @Override
  public String toString() {
    return grantType;
  }

}
